function translate(key) {
    let lang = getLanguage();
    if (translations[lang] && translations[lang][key]) {
        return translations[lang][key];
    }
    // Return the original text if no translation found
    return key;
}

function translateStaticContent() {
    let language = getLanguage();
    const elements = document.querySelectorAll('[data-translate]');
    elements.forEach((element) => {
        const key = element.getAttribute('data-translate');
        if (translations[language] && translations[language][key]) {
            element.textContent = translations[language][key];
        }
    });
}

function getLanguage() {
    let language = getCookie('lang');
    if (!language) {
        const browserLanguage = navigator.language.slice(0, 2);
        // Map supported languages to their respective codes
        const languageMap = {
            'pl': 'pl',
            'en': 'en',
            'de': 'de',
            'fr': 'fr',
            'es': 'es',
            'zh': 'zh',
            'hi': 'hi',
            'pt': 'pt',
            'ja': 'ja',
        };
        // If the browser language is supported, set it; otherwise, set to 'en'
        language = languageMap[browserLanguage] || "en";
    }
    return language;
}


const translations = {
    en: {
        //index
        loading: "Loading...",
        home: "Home",
        led_settings: "LED Settings",
        songs: "Songs",
        sequences: "Sequences",
        ports_settings: "Ports Settings",
        led_animations: "LED Animations",
        wifi: "Wi-Fi",
        switch_ports: "Switch Ports",
        view_on_github: "View on GitHub",
        join_discord: "Join Discord server",

        //ledcolor
        led_color: "LED Color",
        multicolor: "Multicolor",
        rainbow_colors: "Rainbow Colors",
        speed: "Speed",
        gradient: "Gradient",
        scale_coloring: "Scale Coloring",
        velocity_rainbow: "Velocity Rainbow",

        offset:  "Offset",
        scale: "Scale",
        timeshift: "Timeshift",
        scale_percent: "Scale %",
        curve_percent: "Curve %",
        slow_color: "Slow Color",
        fast_color: "Fast Color",
        max_notes: "Max Notes",
        period_in_seconds: "Period in seconds",
        start: "Start",
        end: "End",
        color_for_in_scale: "Color for in scale",
        color_for_not_in_scale: "Color for not in scale",
        scale_key: "Scale key",

        //lightmode
        fading: "Fading",
        velocity: "Velocity",
        instant: "Instant",
        very_fast: "Very Fast",
        fast: "Fast",
        medium: "Medium",
        slow: "Slow",
        very_slow: "Very Slow",

        //ledsettings
        backlight: "Backlight",
        sides_colors:  "Sides Colors",
        off: "Off",
        same_as_led_color: "Same as LED Color",
        rgb: "RGB",
        adjustments: "Adjustments",
        skipped_notes: "Skipped Notes",
        finger_based_ignore: "Finger Based: ignore notes with information about which hand to play",
        normal_ignore_all_other: "Normal:ignore all other notes",
        none: "None",
        finger_based: "Finger Based",
        reverse: "Reverse",
        inverted: "Inverted",
        shift: "Shift",
        led_count: "Led Count",
        leds_per_meter: "Leds per meter",
        led_note_offsets: "LED Note Offsets",
        shift_notes_for_better_alignment: "Shift notes for better alignment",
        light_number_means: "Light number: 92 and Offset: 2 means that notes after the LED 92 will be shifted by 2 lefts to the left",
        light_number: "Light Number",
        note_offset: "Note offset",
        disable_backlight_on_idle: "Disable Backlight on idle",

        //songs
        status: "Status",
        start_recording: "Start Recording",
        starting: "starting",
        stop_and_save: "Stop and Save",
        cancel_recording: "Cancel Recording",
        canceling:  "canceling",
        upload_songs: "Upload Songs",
        drag_and_drop_midi: "Drag and drop midi file(s) here",
        or_click_to_choose: "or click to choose file(s) to upload",
        play_on_piano: "Play on piano",
        stop: "Stop",
        stop_learning: "Stop learning",
        loop: "Loop",
        practice: "Practice",
        melody: "Melody",
        rhytm: "Rhytm",
        listen:  "Listen",
        tempo:  "Tempo",
        hands: "Hands",
        both: "Both",
        right: "Right",
        left: "Left",
        mute_hands: "Mute Hands",
        wrong_notes: "Wrong Notes",
        disabled: "Disabled",
        enabled: "Enabled",
        future_notes: "Future Notes",
        start_point: "Start Point",
        set_the_current_track_time: "Set the current track time as the loop start",
        end_point: "End Point",
        set_the_current_track_time_as_the_loop_end: "Set the current track time as the loop end",
        left_hand_color: "Left hand color",
        right_hand_color: "Right hand color",
        songs_list: "Songs List",
        getting_songs_list: "Getting songs list",
        number_of_mistakes: "Number of mistakes to restart loop (0 - never)",

        //sheetmusic
        load_custom_sheet: "Load custom sheet",
        offset_ms: "Offset (ms)",
        sheet_tip_line_1: "If the automatic conversion does not suit your expectations, you can load your own musical notation.",
        sheet_tip_line_2: "The highlighted part of the music notation is only an approximate indicator. Use the offset tool to improve synchronization.",
        sheet_tip_line_3: "For the best result do the following:",
        sheet_tip_line_4: "1. Convert your music notation to a midi file using Musescore or similar program, name it the same as the midi file you want to load. (E.g. my_music.mid and my_music.xml)",
        sheet_tip_line_5: "2. Upload the midi file and the music notation file.",

        //songslist
        name: "Name",
        date: "Date",
        action: "Action",
        songs_per_page: "Songs per page",
        total_songs: "Total songs: ",

        //sequences
        sequence: "Sequence",
        active_sequence: "Active Sequence",
        color: "Color",
        next_step: "Next Step",
        press_spacebar:  "Press spacebar",
        add: "Add",
        remove: "Remove",
        step: "Step",
        activation_method:  "Activation Method",
        button_press: "Button Press",
        sustain_pedal: "Sustain Pedal",
        portamento_pedal:  "Portamento Pedal",
        sostuneto_pedal: "Sostuneto Pedal",
        soft_pedal: "Soft Pedal",
        next_step_value:  "Next Step Value",
        next_step_tip_line_1: "This value decides if next step is activated when you press or release the pedal.",
        next_step_tip_line_2: "For example if you want to change settings after fully pressing Sostenuto pedal you should set it to 126",
        next_step_tip_line_3: "(127 is the maximum value when pedal is fully pressed).",
        next_step_tip_line_4: "Set value to -1 to change settings with your pedal by releasing it fully.",
        sequence_name: "Sequence name",
        save_current_settings_to_step: "Save current settings to step",

        //ports
        for_lighting_leds: "For lighting LEDs with your keyboard, set your piano port as an active input.",
        set_your_synthesia: "Set your Synthesia's port for learning mode.",
        active: "Active",
        switch: "Switch",
        secondary: "Secondary",
        used_for_sound: "Used for sound when playing a midi file.",
        list_of_ports: "List of ports and connections",
        disconnect_ports: "Disconnect ports",
        restart_rtp: "Restart RTP MIDI service",
        midi_events: "MIDI events",
        show_midi_events: "Show midi events (might degrade performance)",

        //network
        connected_wifi: "Connected Wi-Fi",
        disconnect_wifi_and_create_hotspot: "Disconnect Wi-Fi and create Hotspot",
        disconnecting_warning_line_1: "Disconnecting from Wi-Fi will start the process of creating a Hotspot. This might take a moment.",
        disconnecting_warning_line_2: "You'll need to connect to the newly created Hotspot to access the web interface again.",
        wifi_list: "Wi-Fi List",

        //ledanimations
        stop_animation: "Stop animation",
        led_animation_on_idle: "LED animation on IDLE",
        after_minutes: "after minutes (0 - never)",
        animation_type: "Animation type",

        //homepage
        advanced_mode: "Advanced mode",
        system_cpu_usage: "System CPU usage",
        ram_usage: "Ram usage",
        disk_usage: "Disk Usage",
        bandwidth_usage: "Bandwidth Usage",
        process_cpu_usage: "Process CPU usage",
        metronome: "Metronome",
        beats_per_measure: "Beats Per Measure",
        volume: "Volume",
        color_mode: "Color Mode",
        single: "Single",
        light_mode: "Light Mode",
        normal: "Normal",
        brightness: "Brightness",
        backlight_brightness: "Backlight Brightness",
        input_port: "Input Port",
        playback_port: "Playback Port",
        cover_state: "Cover State",
        screen: "Screen",
        reset_settings_to_default: "Reset settings to default",
        confirm: "Confirm",
        restart_rpi: "Restart RPi",
        restart_visualizer: "Restart Visualizer",
        power_off: "Power Off",
        update_visualizer: "Update Visualizer",
        connect_ports: "Connect Ports",
        clean_led_strip: "Clean LED Strip",
        logs: "Logs",
        show_last: "Show last",
        lines: "lines",
        reinitialize_network_on_boot: "Reinitialize network on boot",
        required_for_some_routers: "Required for some routers. Disabling this option will speed up the start, but it may cause connection issues",

        //dynamic content
        incorrect_password: "If an incorrect password is entered, it might take a few minutes for the hotspot to be reestablished.",
        if_the_hotspot: "If the Hotspot doesn't appear after 5 minutes, please restart the device",
        connect: "Connect",


    },
    pl: {
        //index
        loading: "Ładowanie...",
        home: "Strona główna",
        led_settings: "Ustawienia LED",
        songs: "Nuty",
        sequences: "Sekwencje",
        ports_settings: "Ustawienia Portów",
        led_animations: "Animacje LED",
        wifi: "Wi-Fi",
        switch_ports: "Zamień Porty",
        view_on_github: "Sprawdź GitHub",
        join_discord: "Dołącz do serwera Discord",

        offset: "Przesunięcie",
        scale: "Skala",
        timeshift: "Przesunięcie czasu",
        scale_percent: "Skala %",
        curve_percent: "Krzywa %",
        slow_color: "Wolno - kolor",
        fast_color: "Szybko - kolor",
        max_notes: "Maksymalna liczba nut",
        period_in_seconds: "Okres w sekundach",
        start: "Początek",
        end: "Koniec",
        color_for_in_scale: "Kolor dla nut w skali",
        color_for_not_in_scale: "Kolor dla nut poza skalą",
        scale_key: "Klucz skali",


        //ledcolor
        led_color: "Kolor LED",
        multicolor: "Wiele kolorów",
        rainbow_colors: "Tęcza",
        speed: "Prędkość",
        gradient: "Gradient",
        scale_coloring: "Skala kolorów",
        velocity_rainbow: "Tęcza-Prędkość",

        //lightmode
        fading: "Zanikanie",
        velocity: "Szybkość nacisku",
        instant: "Natychmiast",
        very_fast: "Bardzo szybko",
        fast: "Szybko",
        medium: "Średnio",
        slow: "Wolno",
        very_slow: "Bardzo wolno",

        //ledsettings
        backlight: "Podświetlenie",
        sides_colors:  "Sąsiadujące diody",
        off: "Wyłącz",
        same_as_led_color: "Takie same jak kolor LED",
        rgb: "RGB",
        adjustments: "Poprawki",
        skipped_notes: "Pominięte nuty",
        finger_based_ignore: "Finger Based: ignoruj nuty z informacją którą ręką należy grać",
        normal_ignore_all_other: "Normal: ignoruj wszystkie inne nuty",
        none: "Brak",
        finger_based: "Finger Based",
        reverse: "Kierunek",
        inverted: "Odwrócone",
        shift: "Przesunięcie",
        led_count: "Liczba diód",
        leds_per_meter: "Ledów na metr",
        led_note_offsets: "Przesunięcie diód względem nut",
        shift_notes_for_better_alignment: "Przesuń by wyrównać diody względem klawiszy",
        light_number_means: "Numer diody: 92 i Wyrównanie: 2 oznaczają, że diody od 92 wzwyż będą przesunięte o dwie pozycje w lewo",
        light_number: "Numer diody",
        note_offset: "Przesunięcie",
        disable_backlight_on_idle: "Wyłącz podświetlenie w stanie spoczynku",

        //songs
        status: "Status",
        start_recording: "Rozpocznij nagrywanie",
        stop_recording: "Zatrzymaj nagrywanie",
        starting: "Rozpoczynanie",
        stop_and_save: "Zatrzymaj i zapisz",
        cancel_recording: "Anuluj nagrywanie",
        canceling: "Anulowanie",
        upload_songs: "Prześlij Nuty",
        drag_and_drop_midi: "Przeciągnij i upuść MIDI",
        or_click_to_choose: "Lub kliknij aby wybrać",
        play_on_piano: "Odtwórz na pianie",
        stop: "Zatrzymaj",
        stop_learning: "Zatrzymaj naukę",
        loop: "Pętla",
        practice: "Ćwiczenia",
        melody:  "Melodia",
        rhytm: "Rytm",
        listen: "Słuchaj",
        tempo:  "Tempo",
        hands: "Ręce",
        both: "Obie",
        right: "Prawa",
        left: "Lewa",
        mute_hands: "Wycisz ręce",
        wrong_notes: "Niepoprawne nuty",
        disabled: "Wyłączone",
        enabled: "Włączone",
        future_notes: "Przyszłe nuty",
        start_point: "Początek",
        set_the_current_track_time: "Ustaw aktualny czas jako początek",
        end_point: "Koniec",
        set_the_current_track_time_as_the_loop_end: "Ustaw aktualny czas jako koniec",
        left_hand_color: "Kolor lewej ręki",
        right_hand_color: "Kolor prawej ręki",
        songs_list: "Lista Nut",
        getting_songs_list: "Ładowanie listy nut",
        number_of_mistakes: "Liczba błędów do ponownego uruchomienia pętli (0 - nigdy)",

        //sheetmusic
        load_custom_sheet: "Wczytaj własny zapis nutowy",
        offset_ms: "Przesunięcie (ms)",
        sheet_tip_line_1: "Jeśli automatyczna konwersja nie spełnia oczekiwań możesz wczytać własny zapis nutowy",
        sheet_tip_line_2: "Podświetlona część zapisu nutowego jest tylko szacunkową wskazówką. Użyj narzędzia do zmiany przesunięcia by poprawić synchronizację",
        sheet_tip_line_3: "W celu osiągnięcia najlepszych efektów wykonaj następujące kroki:",
        sheet_tip_line_4: "1. Przekonwertuj zapis nutowy na plik MIDI używając MuseScore lub podobnego programu. Nazwij oba pliki tak samo",
        sheet_tip_line_5: "2. Wczytaj plik MIDI oraz zapis nutowy",

        //songslist
        name: "Tytuł",
        date: "Data",
        action: "Akcja",
        songs_per_page: "Nut na stronę",
        total_songs: "Łącznie nut: ",

        //sequences
        sequence: "Sekwencja",
        active_sequence: "Aktywna sekwencja",
        color: "Kolor",
        next_step: "Następny krok",
        press_spacebar:  "Wciśnij spację",
        add: "Dodaj",
        remove: "Usuń",
        step: "Krok",
        activation_method:  "Metoda aktywacji",
        button_press: "Wciśnięcie przycisku",
        sustain_pedal: "Pedał Sustain",
        portamento_pedal:  "Pedał Portamento",
        sostuneto_pedal: "Pedał Sostuneto",
        soft_pedal: "Pedał Soft",
        next_step_value:  "Wartość następnego kroku",
        next_step_tip_line_1: "Wartość następnego kroku odpowiada za to czy następny krok aktywuje się przy wciśnięciu lub puszczeniu pedała.",
        next_step_tip_line_2: "Dla przykładu: jeśli chcesz zmienić ustawienia po pełnym wciśnięciu prawego pedała ustaw wartość następnego kroku na 126",
        next_step_tip_line_3: "(127 to maksymalna wartość przy wciśniętym pedale)",
        next_step_tip_line_4: "Ustaw wartość na -1, aby zmienić ustawienia za pomocą pedału, w pełni go zwalniając.",
        sequence_name: "Nazwa sekwencji",
        save_current_settings_to_step: "Zapisz ustawienia aktualnego kroku",

        //ports
        for_lighting_leds: "By podświetla klawisze grając ustaw swoje pianino jako aktywny port",
        set_your_synthesia: "Ustaw port Synthesii ucząc się grać",
        active: "Aktywny",
        switch: "Zamień",
        secondary: "Zastępczy port",
        used_for_sound: "Używany przy odtwarzaniu MIDI",
        list_of_ports: "Lista portów i połączeń",
        disconnect_ports: "Rozłącz porty",
        restart_rtp: "Zrestartuj usługę RTP MIDI",
        midi_events: "Wiadomości MIDI",
        show_midi_events: "Pokaż wiadomości MIDI (może obniżyć wydajność)",

        //network
        connected_wifi: "Połączone Wi-Fi",
        disconnect_wifi_and_create_hotspot: "Rozłącz Wi-Fi i utwórz Hotspot",
        disconnecting_warning_line_1: "Rozłączenie z Wi-Fi rozpocznie proces tworzenia Hotspota. Może to zająć kilka minut",
        disconnecting_warning_line_2: "By uzyskać dostęp do interfejsu, należy najpierw połaczyć się z Hotspotem",
        wifi_list: "Lista dostępnych Wi-Fi",

        //ledanimations
        stop_animation: "Zatrzymaj animacje",
        led_animation_on_idle: "Animacja w trakcie bezczynności",
        after_minutes: "po ilu minutach (0 - nigdy)",
        animation_type: "Typ animacji",

        //homepage
        advanced_mode: "Tryb zaawansowany",
        system_cpu_usage: "Użycie procesora przez system",
        ram_usage: "Użycie RAM",
        disk_usage: "Użycie dysku",
        bandwidth_usage: "Wykorzystanie sieci",
        process_cpu_usage: "Użycie procesora przez aplikacje",
        metronome: "Metronom",
        beats_per_measure: "Uderzeń na takt",
        volume: "Głośność",
        color_mode: "Tryb koloru",
        single: "Pojedynczy",
        light_mode: "Tryb świecenia",
        normal: "Normalny",
        brightness: "Jasność",
        backlight_brightness: "Jasność podświetlenia",
        input_port: "Port wejścia",
        playback_port: "Port odtwarzania",
        cover_state: "Stan pokrywy",
        screen: "Ekran",
        reset_settings_to_default: "Przywróć ustawienia domyślne",
        confirm: "Potwierdź",
        restart_rpi: "Zrestartuj RPi",
        restart_visualizer: "Zrestartuj Visualizator",
        power_off: "Wyłącz",
        update_visualizer: "Aktualizuj Visualizator",
        connect_ports: "Połącz Porty",
        clean_led_strip: "Wyczyść taśmę LED",
        logs: "Logi",
        show_last: "Pokaż ostatnie",
        lines: "linii",
        reinitialize_network_on_boot: "Zainicjuj ponownie sieć podczas uruchamiania",
        required_for_some_routers: "Wymagane dla niektórych routerów. Wyłączenie tej opcji przyspieszy uruchomienie, ale może powodować problemy z połączeniem",

        //dynamic content
        incorrect_password: "Jeśli wprowadzone zostało niepoprawne hasło, może minąć kilka minut zanim hotspot zostanie ponownie utworzony." ,
        if_the_hotspot: "Jeśli Hotspot nie pojawi się po 5 minutach, proszę zrestartować urządzenie",
        connect: "Połącz",
    },

    fr: {
        //index
        loading: "Chargement...",
        home: "Accueil",
        led_settings: "Paramètres LED",
        songs: "Chansons",
        sequences: "Séquences",
        ports_settings: "Paramètres des Ports",
        led_animations: "Animations LED",
        wifi: "Wi-Fi",
        switch_ports: "Ports de commutation",
        view_on_github: "Voir sur GitHub",
        join_discord: "Rejoindre le serveur Discord",

        //ledcolor
        led_color: "Couleur LED",
        multicolor: "Multicolore",
        rainbow_colors: "Couleurs d'arc-en-ciel",
        speed: "Vitesse",
        gradient: "Dégradé",
        scale_coloring: "Coloration d'échelle",
        velocity_rainbow: "Arc-en-ciel de vitesse",

        offset:  "Décalage",
        scale: "Échelle",
        timeshift: "Décalage temporel",
        scale_percent: "Échelle %",
        curve_percent: "Courbe %",
        slow_color: "Couleur lente",
        fast_color: "Couleur rapide",
        max_notes: "Notes maximales",
        period_in_seconds: "Période en secondes",
        start: "Début",
        end: "Fin",
        color_for_in_scale: "Couleur pour la gamme",
        color_for_not_in_scale: "Couleur pour hors échelle",
        scale_key: "Clé d'échelle",

        //lightmode
        fading: "Disparition",
        velocity: "Vélocité",
        instant: "Instantané",
        very_fast: "Très rapide",
        fast: "Rapide",
        medium: "Moyenne",
        slow: "Lent",
        very_slow: "Très lent",

        //ledsettings
        backlight: "Rétro-éclairage",
        sides_colors:  "Couleurs latérales",
        off: "Arrêt",
        same_as_led_color: "Identique à la couleur LED",
        rgb: "RGB",
        adjustments: "Ajustements",
        skipped_notes: "Notes ignorées",
        finger_based_ignore: "Doigt basé: ignore les notes avec informations sur quelle main à jouer",
        normal_ignore_all_other: "Normal: ignore toutes les autres notes",
        none: "Aucun",
        finger_based: "Doigt basé",
        reverse: "Inverse",
        inverted: "Inversé",
        shift: "Décalage",
        led_count: "Nombre de LED",
        leds_per_meter: "Leds par mètre",
        led_note_offsets: "Décalages de note LED",
        shift_notes_for_better_alignment: "Décaler les notes pour un meilleur alignement",
        light_number_means: "Numéro de lumière : 92 et Décalage : 2 signifient que les notes après la LED 92 seront déplacées de 2 positions vers la gauche",
        light_number: "Numéro de lumière",
        note_offset: "Décalage des notes",
        disable_backlight_on_idle: "Désactiver le rétroéclairage en veille",

        //songs
        status: "Statut",
        start_recording: "Commencer l'enregistrement",
        starting: "Démarrage",
        stop_and_save: "Arrêtez et Sauvegardez",
        cancel_recording: "Annuler l'enregistrement",
        canceling:  "Annulation",
        upload_songs: "Téléchargez des chansons",
        drag_and_drop_midi: "Déposez le fichier midi ici",
        or_click_to_choose: "ou cliquez pour choisir les fichiers à télécharger",
        play_on_piano: "Jouer au piano",
        stop: "Arrêter",
        stop_learning: "Arrêter d'apprendre",
        loop: "Boucle",
        practice: "Pratique",
        melody: "Mélodie",
        rhytm: "Rythme",
        listen:  "Écoutez",
        tempo:  "Tempo",
        hands: "Mains",
        both: "Les deux",
        right: "Droite",
        left: "Gauche",
        mute_hands: "Mains muettes",
        wrong_notes: "Notes fausses",
        disabled: "Désactivé",
        enabled: "Activé",
        future_notes: "Notes futures",
        start_point: "Point de départ",
        set_the_current_track_time: "Réglez l'heure de la piste actuelle comme début de boucle",
        end_point: "Fin de boucle",
        set_the_current_track_time_as_the_loop_end: "Réglez l'heure de la piste actuelle comme fin de boucle",
        left_hand_color: "Couleur main gauche",
        right_hand_color: "Couleur main droite",
        songs_list: "Liste des chansons",
        getting_songs_list: "Obtenir la liste des chansons",
        number_of_mistakes: "Nombre d'erreurs pour redémarrer la boucle (0 - jamais)",

        //sheetmusic
        load_custom_sheet: "Charger la feuille personnalisée",
        offset_ms: "Décalage (ms)",
        sheet_tip_line_1: "Si la conversion automatique ne répond pas à vos attentes, vous pouvez charger votre propre notation musicale.",
        sheet_tip_line_2: "La partie en surbrillance de la notation musicale est uniquement un indicateur approximatif. Utilisez l'outil de décalage pour améliorer la synchronisation.",
        sheet_tip_line_3: "Pour obtenir le meilleur résultat, faites ce qui suit :",
        sheet_tip_line_4: "1. Convertissez votre notation musicale en un fichier midi en utilisant Musescore ou un programme similaire, nommez-le comme le fichier midi que vous souhaitez charger. (ex: ma_musique.mid et ma_musique.xml)",
        sheet_tip_line_5: "2. Téléchargez le fichier midi et le fichier de notation musicale.",

        //songslist
        name: "Nom",
        date: "Date",
        action: "Action",
        songs_per_page: "Chansons par page",
        total_songs: "Total des chansons: ",

        //sequences
        sequence: "Séquence",
        active_sequence: "Séquence active",
        color: "Couleur",
        next_step: "Prochaine étape",
        press_spacebar:  "Appuyez sur espace",
        add: "Ajouter",
        remove: "Retirer",
        step: "Étape",
        activation_method:  "Méthode d'activation",
        button_press: "Appui sur bouton",
        sustain_pedal: "Pédale de sustain",
        portamento_pedal:  "Pédale de portamento",
        sostuneto_pedal: "Pédale de sostenuto",
        soft_pedal: "Pédale douce",
        next_step_value:  "Valeur de l'étape suivante",
        next_step_tip_line_1: "Cette valeur détermine si l'étape suivante est activée lorsque vous appuyez ou relâchez la pédale.",
        next_step_tip_line_2: "Par exemple, si vous souhaitez changer les paramètres après avoir complètement appuyé sur la pédale Sostenuto, vous devez le définir à 126",
        next_step_tip_line_3: "(127 est la valeur maximale lorsque la pédale est complètement enfoncée).",
        next_step_tip_line_4: "Réglez la valeur à -1 pour changer les paramètres en relâchant complètement la pédale.",
        sequence_name: "Nom de la séquence",
        save_current_settings_to_step: "Enregistrer les paramètres actuels à l'étape",

        //ports
        for_lighting_leds: "Pour éclairer les LED avec votre clavier, définissez votre port de piano comme entrée active.",
        set_your_synthesia: "Définissez votre port Synthesia pour le mode d'apprentissage.",
        active: "Actif",
        switch: "Switch",
        secondary: "Secondaire",
        used_for_sound: "Utilisé pour le son lors de la lecture d'un fichier midi.",
        list_of_ports: "Liste des ports et connexions",
        disconnect_ports: "Déconnecter les ports",
        restart_rtp: "Redémarrez le service RTP MIDI",
        midi_events: "Événements MIDI",
        show_midi_events: "Afficher les événements midi (peut dégrader les performances)",

        //network
        connected_wifi: "Wi-Fi connecté",
        disconnect_wifi_and_create_hotspot: "Déconnecter le Wi-Fi et créer un hotspot",
        disconnecting_warning_line_1: "La déconnexion du Wi-Fi commencera le processus de création d'un hotspot. Cela peut prendre un moment.",
        disconnecting_warning_line_2: "Vous devrez vous connecter au nouveau hotspot créé pour accéder à nouveau à l'interface Web.",
        wifi_list: "Liste Wi-Fi",

        //ledanimations
        stop_animation: "Arrêter l'animation",
        led_animation_on_idle: "Animation LED en veille",
        after_minutes: "après minutes (0 - jamais)",
        animation_type: "Type d'animation",


        //homepage
        advanced_mode: "Mode avancé",
        system_cpu_usage: "Utilisation du CPU du système",
        ram_usage: "Utilisation de la RAM",
        disk_usage: "Utilisation du disque",
        bandwidth_usage: "Utilisation de la bande passante",
        process_cpu_usage: "Utilisation du CPU par le processus",
        metronome: "Métronome",
        beats_per_measure: "Bats par mesure",
        volume: "Volume",
        color_mode: "Mode couleur",
        single: "Unique",
        light_mode: "Mode lumière",
        normal: "Normal",
        brightness: "Luminosité",
        backlight_brightness: "Luminosité du rétro-éclairage",
        input_port: "Port d'entrée",
        playback_port: "Port de lecture",
        cover_state: "État de la couverture",
        screen: "Écran",
        reset_settings_to_default: "Réinitialiser les paramètres par défaut",
        confirm: "Confirmer",
        restart_rpi: "Redémarrer RPi",
        restart_visualizer: "Redémarrer le visualiseur",
        power_off: "Éteindre",
        update_visualizer: "Mettre à jour le visualiseur",
        connect_ports: "Connecter les ports",
        clean_led_strip: "Nettoyer la bande LED",
        logs: "Logs",
        show_last: "Voir dernier",
        lines: "lignes",
        reinitialize_network_on_boot: "Réinitialiser le réseau au démarrage",
        required_for_some_routers: "Nécessaire pour certains routeurs. Désactiver cette option accélérera le démarrage, mais cela peut entraîner des problèmes de connexion",


        //dynamic content
        incorrect_password: "Si un mot de passe incorrect est entré, il peut falloir quelques minutes pour que le hotspot soit rétabli.",
        if_the_hotspot: "Si le hotspot n'apparaît pas après 5 minutes, veuillez redémarrer l'appareil",
        connect: "Connecter",
    },

    de: {
        //index
        loading: "Lädt...",
        home: "Startseite",
        led_settings: "LED Einstellungen",
        songs: "Songs",
        sequences: "Sequenzen",
        ports_settings: "Port Einstellungen",
        led_animations: "LED Animationen",
        wifi: "Wi-Fi",
        switch_ports: "Ports wechseln",
        view_on_github: "Auf GitHub ansehen",
        join_discord: "Discord-Server beitreten",

        //ledcolor
        led_color: "LED Farbe",
        multicolor: "Mehrfarbig",
        rainbow_colors: "Regenbogen Farben",
        speed: "Geschwindigkeit",
        gradient: "Verlauf",
        scale_coloring: "Skalenfärbung",
        velocity_rainbow: "Velocity-Regenbogen",

        offset:  "Versatz",
        scale: "Skala",
        timeshift: "Zeitverschiebung",
        scale_percent: "Skala %",
        curve_percent: "Kurve %",
        slow_color: "Langsame Farbe",
        fast_color: "Schnelle Farbe",
        max_notes: "Maximal Noten",
        period_in_seconds: "Zeitraum in Sekunden",
        start: "Start",
        end: "Ende",
        color_for_in_scale: "Farbe für skaliert",
        color_for_not_in_scale: "Farbe für nicht skaliert",
        scale_key: "Tonschlüssel",

        //lightmode
        fading: "Verblassen",
        velocity: "Geschwindigkeit",
        instant: "Sofort",
        very_fast: "Sehr schnell",
        fast: "Schnell",
        medium: "Mittel",
        slow: "Langsam",
        very_slow: "Sehr langsam",

        //ledsettings
        backlight: "Hintergrundbeleuchtung",
        sides_colors:  "Seitenfarben",
        off: "Aus",
        same_as_led_color: "Selbe wie LED Farbe",
        rgb: "RGB",
        adjustments: "Anpassungen",
        skipped_notes: "Übersprungene Noten",
        finger_based_ignore: "Fingerverweise ignorieren",
        normal_ignore_all_other: "Normal: Alle anderen ignorieren",
        none: "Keine",
        finger_based: "Fingerbasierend",
        reverse: "Umkehren",
        inverted: "Invertiert",
        shift: "Verschieben",
        led_count: "LED Anzahl",
        leds_per_meter: "LEDs pro Meter",
        led_note_offsets: "LED-Notenversatz",
        shift_notes_for_better_alignment: "Noten verschieben für bessere Ausrichtung",
        light_number_means: "Lichtnummer: 92 und Versatz: 2 bedeutet, dass Noten nach LED 92 um 2 Positionen nach links verschoben werden",
        light_number: "Lichtnummer",
        note_offset: "Notenversatz",
        disable_backlight_on_idle: "Deaktivieren Sie die Hintergrundbeleuchtung im Leerlauf",

        //songs
        status: "Status",
        start_recording: "Aufnahme starten",
        starting: "Startet",
        stop_and_save: "Stoppen und Speichern",
        cancel_recording: "Aufnahme abbrechen",
        canceling:  "Wird abgebrochen",
        upload_songs: "Songs hochladen",
        drag_and_drop_midi: "Ziehen und Ablegen von Midi-Datei(en) hier möglich",
        or_click_to_choose: "oder klicke zum Hochladen der Datei(en)",
        play_on_piano: "Auf Klavier spielen",
        stop: "Stoppen",
        stop_learning: "Lernen stoppen",
        loop: "Schleife",
        practice: "Übung",
        melody: "Melodie",
        rhytm: "Rhythmus",
        listen:  "Hören",
        tempo:  "Tempo",
        hands: "Hände",
        both: "Beide",
        right: "Rechte",
        left: "Linke",
        mute_hands: "Hände stummschalten",
        wrong_notes: "Falsche Noten",
        disabled: "Deaktiviert",
        enabled: "Aktiviert",
        future_notes: "Zukünftige Noten",
        start_point: "Startpunkt",
        set_the_current_track_time: "Setze die aktuelle Track-Zeit als Start der Schleife",
        end_point: "Endpunkt",
        set_the_current_track_time_as_the_loop_end: "Setze die aktuelle Track-Zeit als Ende der Schleife",
        left_hand_color: "Farbe linke Hand",
        right_hand_color: "Farbe rechte Hand",
        songs_list: "Songs Liste",
        getting_songs_list: "Songliste bekommen",
        number_of_mistakes: "Anzahl der Fehler, um die Schleife neu zu starten (0 - nie)",

        //sheetmusic
        load_custom_sheet: "Benutzerdefinierte Partitur laden",
        offset_ms: "Versatz (ms)",
        sheet_tip_line_1: "Wenn die automatische Konvertierung nicht Ihren Erwartungen entspricht, können Sie Ihre eigene Notenschrift laden.",
        sheet_tip_line_2: "Der hervorgehobene Teil der Musiknotation ist nur ein ungefährer Anhaltspunkt. Verwenden Sie das Offset-Tool, um die Synchronisation zu verbessern.",
        sheet_tip_line_3: "Für das beste Ergebnis machen Sie folgendes:",
        sheet_tip_line_4: "1. Konvertieren Sie Ihre Musiknotation in eine Midi-Datei mit Musescore oder einem ähnlichen Programm, nennen Sie es gleich wie die Midi-Datei, die Sie laden wollen. (z.B. meine_musik.mid und meine_musik.xml)",
        sheet_tip_line_5: "2. Laden Sie die Midi-Datei und die Musiknotationsdatei hoch.",

        //songslist
        name: "Name",
        date: "Datum",
        action: "Action",
        songs_per_page: "Songs pro Seite",
        total_songs: "Total Songs: ",

        //sequences
        sequence: "Sequenz",
        active_sequence: "Aktive Sequenz",
        color: "Farbe",
        next_step: "Nächster Schritt",
        press_spacebar:  "Leertaste drücken",
        add: "Hinzufügen",
        remove: "Entfernen",
        step: "Schritt",
        activation_method:  "Aktivierungsmethode",
        button_press: "Tastendruck",
        sustain_pedal: "Sustain Pedal",
        portamento_pedal:  "Portamento Pedal",
        sostuneto_pedal: "Sostuneto Pedal",
        soft_pedal: "Weiches Pedal",
        next_step_value:  "Nächster Schrittwert",
        next_step_tip_line_1: "Dieser Wert entscheidet, ob der nächste Schritt aktiviert wird, wenn Sie das Pedal drücken oder loslassen.",
        next_step_tip_line_2: "Zum Beispiel, wenn Sie die Einstellungen ändern möchten, nachdem Sie das Sostenuto-Pedal vollständig gedrückt haben, sollten Sie es auf 126 setzen",
        next_step_tip_line_3: "(127 ist der maximale Wert, wenn das Pedal vollständig gedrückt ist).",
        next_step_tip_line_4: "Stellen Sie den Wert auf -1, um die Einstellungen zu ändern, indem Sie das Pedal vollständig loslassen.",
        sequence_name: "Sequenzname",
        save_current_settings_to_step: "Aktuelle Einstellungen in Schritt speichern",

        //ports
        for_lighting_leds: "Um die LEDs mit Ihrer Tastatur zu beleuchten, stellen Sie Ihren Klavierport als aktiven Eingang ein.",
        set_your_synthesia: "Stellen Sie Ihren Synthesia-Port für den Lernmodus ein.",
        active: "Aktiv",
        switch: "Wechseln",
        secondary: "Sekundär",
        used_for_sound: "Wird für den Klang beim Abspielen einer MIDI-Datei verwendet.",
        list_of_ports: "Liste von Ports und Verbindungen",
        disconnect_ports: "Ports trennen",
        restart_rtp: "RTP MIDI Service neu starten",
        midi_events: "MIDI-Events",
        show_midi_events: "MIDI-Events anzeigen (kann die Leistung beeinträchtigen)",

        //network
        connected_wifi: "Verbundenes Wi-Fi",
        disconnect_wifi_and_create_hotspot: "Wi-Fi trennen und Hotspot erstellen",
        disconnecting_warning_line_1: "Das Trennen des Wi-Fi startet den Prozess zum Erstellen eines Hotspots. Das kann eine Weile dauern.",
        disconnecting_warning_line_2: "Sie müssen sich mit dem neu erstellten Hotspot verbinden, um wieder auf die Weboberfläche zugreifen zu können.",
        wifi_list: "Wi-Fi-Liste",

        //ledanimations
        stop_animation: "Animation stoppen",
        led_animation_on_idle: "LED-Animation im Leerlauf",
        after_minutes: "nach Minuten (0 - niemals)",
        animation_type: "Animationsart",

        //homepage
        advanced_mode: "Erweiterter Modus",
        system_cpu_usage: "Verwendung der System-CPU",
        ram_usage: "Ram-Verwendung",
        disk_usage: "Festplattenverbrauch",
        bandwidth_usage: "Bandbreitennutzung",
        process_cpu_usage: "Verwendung der Prozess-CPU",
        metronome: "Metronom",
        beats_per_measure: "Schläge pro Maß",
        volume: "Lautstärke",
        color_mode: "Farbmodus",
        single: "Einzel",
        light_mode: "Lichtmodus",
        normal: "Normal",
        brightness: "Helligkeit",
        backlight_brightness: "Hintergrundbeleuchtung Helligkeit",
        input_port: "Eingangsport",
        playback_port: "Wiedergabe Port",
        cover_state: "Abdeckungszustand",
        screen: "Bildschirm",
        reset_settings_to_default: "Einstellungen auf Default zurücksetzen",
        confirm: "Bestätigen",
        restart_rpi: "RPi neu starten",
        restart_visualizer: "Visualizer neu starten",
        power_off: "Ausschalten",
        update_visualizer: "Visualizer aktualisieren",
        connect_ports: "Ports verbinden",
        clean_led_strip: "LED-Streifen säubern",
        logs: "Logs",
        show_last: "Letzte anzeigen",
        lines: "Linien",
        reinitialize_network_on_boot: "Netzwerk bei Neustart neu initialisieren",
        required_for_some_routers: "Erforderlich für einige Router. Das Deaktivieren dieser Option beschleunigt den Start, kann jedoch Verbindungsprobleme verursachen",


        //dynamic content
        incorrect_password: "Wenn ein falsches Passwort eingegeben wird, kann es einige Minuten dauern, bis der Hotspot wieder hergestellt ist.",
        if_the_hotspot: "Wenn der Hotspot nach 5 Minuten nicht erscheint, starten Sie bitte das Gerät neu",
        connect: "Verbinden",
    },

    es: {

        //index
        loading: "Cargando...",
        home: "Inicio",
        led_settings: "Configuraciones LED",
        songs: "Canciones",
        sequences: "Secuencias",
        ports_settings: "Configuración de puertos",
        led_animations: "Animaciones LED",
        wifi: "Wi-Fi",
        switch_ports: "Cambiar puertos",
        view_on_github: "Ver en GitHub",
        join_discord: "Unirse al servidor de Discord",

        //ledcolor
        led_color: "Color LED",
        multicolor: "Multicolor",
        rainbow_colors: "Colores del arco iris",
        speed: "Velocidad",
        gradient: "Gradiente",
        scale_coloring: "Escalado de colores",
        velocity_rainbow: "Velocidad del arco iris",

        offset:  "Desplazamiento",
        scale: "Escala",
        timeshift: "Desfase temporal",
        scale_percent: "Porcentaje de escala",
        curve_percent: "Porcentaje de curva",
        slow_color: "Color lento",
        fast_color: "Color rápido",
        max_notes: "Notas máximas",
        period_in_seconds: "Período en segundos",
        start: "Inicio",
        end: "Fin",
        color_for_in_scale: "Color en escala",
        color_for_not_in_scale: "Color fuera de escala",
        scale_key: "Clave de escala",

        //lightmode
        fading: "Desvanecimiento",
        velocity: "Velocidad",
        instant: "Instantáneo",
        very_fast: "Muy rápido",
        fast: "Rápido",
        medium: "Medio",
        slow: "Lento",
        very_slow: "Muy lento",

        //ledsettings
        backlight: "Retroiluminación",
        sides_colors:  "Colores laterales",
        off: "Apagado",
        same_as_led_color: "Igual que el color LED",
        rgb: "RGB",
        adjustments: "Ajustes",
        skipped_notes: "Notas omitidas",
        finger_based_ignore: "Basado en dedos: ignorar las notas con información sobre qué mano tocar",
        normal_ignore_all_other: "Normal: ignorar todas las demás notas",
        none: "Ninguno",
        finger_based: "Basado en dedos",
        reverse: "Revertir",
        inverted: "Invertido",
        shift: "Desplazamiento",
        led_count: "Conteo de LED",
        leds_per_meter: "Leds por metro",
        led_note_offsets: "Desplazamientos de las notas LED",
        shift_notes_for_better_alignment: "Desplazar notas para una mejor alineación",
        light_number_means: "Número de luz: 92 y Offset: 2 significa que las notas después del LED 92 serán desplazadas 2 posiciones a la izquierda",
        light_number: "Número de luz",
        note_offset: "Offset de nota",
        disable_backlight_on_idle: "Desactivar retroiluminación en reposo",

        //songs
        status: "Estado",
        start_recording: "Iniciar grabación",
        starting: "Iniciando",
        stop_and_save: "Detener y guardar",
        cancel_recording: "Cancelar grabación",
        canceling:  "Cancelando",
        upload_songs: "Subir canciones",
        drag_and_drop_midi: "Arrastra y suelta el archivo MIDI aquí",
        or_click_to_choose: "o haz clic para elegir el/los archivo(s) a subir",
        play_on_piano: "Reproducir en el piano",
        stop: "Detener",
        stop_learning: "Detener aprendizaje",
        loop: "Bucle",
        practice: "Practicar",
        melody: "Melodía",
        rhytm: "Ritmo",
        listen:  "Escuchar",
        tempo:  "Tempo",
        hands: "Manos",
        both: "Ambas",
        right: "Derecha",
        left: "Izquierda",
        mute_hands: "Manos en silencio",
        wrong_notes: "Notas incorrectas",
        disabled: "Deshabilitado",
        enabled: "Habilitado",
        future_notes: "Notas futuras",
        start_point: "Punto de inicio",
        set_the_current_track_time: "Establecer el tiempo actual de la pista como el inicio del bucle",
        end_point: "Punto final",
        set_the_current_track_time_as_the_loop_end: "Establecer el tiempo actual de la pista como el final del bucle",
        left_hand_color: "Color de la mano izquierda",
        right_hand_color: "Color de la mano derecha",
        songs_list: "Lista de canciones",
        getting_songs_list: "Obteniendo lista de canciones",
        number_of_mistakes: "Número de errores para reiniciar el bucle (0 - nunca)",

        //sheetmusic
        load_custom_sheet: "Cargar hoja personalizada",
        offset_ms: "Offset (ms)",
        sheet_tip_line_1: "Si la conversión automática no cumple con tus expectativas, puedes cargar tu propia notación musical.",
        sheet_tip_line_2: "La parte resaltada de la notación musical es solo un indicador aproximado. Usa la herramienta de desplazamiento para mejorar la sincronización.",
        sheet_tip_line_3: "Para obtener el mejor resultado, haz lo siguiente:",
        sheet_tip_line_4: "1. Convierte tu notación musical en un archivo midi usando Musescore o un programa similar, haz que tenga el mismo nombre que el archivo midi que deseas cargar. (Por ejemplo, mi_música.mid y mi_música.xml)",
        sheet_tip_line_5: "2. Sube el archivo midi y el archivo de notación musical.",

        //songslist
        name: "Nombre",
        date: "Fecha",
        action: "Acción",
        songs_per_page: "Canciones por página",
        total_songs: "Total de canciones:",

        //sequences
        sequence: "Secuencia",
        active_sequence: "Secuencia activa",
        color: "Color",
        next_step: "Siguiente paso",
        press_spacebar:  "Presiona la barra espaciadora",
        add: "Agregar",
        remove: "Eliminar",
        step: "Paso",
        activation_method:  "Método de activación",
        button_press: "Presionar el botón",
        sustain_pedal: "Pedal de sostenido",
        portamento_pedal:  "Pedal de portamento",
        sostuneto_pedal: "Pedal de sostenuto",
        soft_pedal: "Pedal suave",
        next_step_value:  "Valor del siguiente paso",
        next_step_tip_line_1: "Este valor decide si el siguiente paso se activa cuando presionas o sueltas el pedal.",
        next_step_tip_line_2: "Por ejemplo, si quieres cambiar la configuración después de presionar completamente el pedal sostenuto, debes configurarlo en 126",
        next_step_tip_line_3: "(127 es el valor máximo cuando el pedal está completamente presionado).",
        next_step_tip_line_4: "Establece el valor en -1 para cambiar la configuración con tu pedal liberándolo completamente.",
        sequence_name: "Nombre de la secuencia",
        save_current_settings_to_step: "Guardar configuración actual en el paso",

        //ports
        for_lighting_leds: "Para iluminar los LEDs con tu teclado, configura tu puerto de piano como entrada activa.",
        set_your_synthesia: "Configura el puerto de tu Synthesia para el modo de aprendizaje.",
        active: "Activo",
        switch: "Cambiar",
        secondary: "Secundario",
        used_for_sound: "Usado para sonido cuando se reproduce un archivo midi.",
        list_of_ports: "Lista de puertos y conexiones",
        disconnect_ports: "Desconectar los puertos",
        restart_rtp: "Reiniciar servicio RTP MIDI",
        midi_events: "Eventos MIDI",
        show_midi_events: "Mostrar eventos MIDI (puede degradar el rendimiento)",

        //network
        connected_wifi: "Wi-Fi conectado",
        disconnect_wifi_and_create_hotspot: "Desconectar Wi-Fi y crear un punto de acceso",
        disconnecting_warning_line_1: "Desconectarse de Wi-Fi iniciará el proceso de creación de un punto de acceso. Esto puede llevar un momento.",
        disconnecting_warning_line_2: "Deberás conectarte al punto de acceso recién creado para volver a acceder a la interfaz web.",
        wifi_list: "Lista de Wi-Fi",

        //ledanimations
        stop_animation: "Detener animación",
        led_animation_on_idle: "Animación LED en reposo",
        after_minutes: "después de minutos (0 - nunca)",
        animation_type: "Tipo de animación",

        //homepage
        advanced_mode: "Modo avanzado",
        system_cpu_usage: "Uso de CPU del sistema",
        ram_usage: "Uso de RAM",
        disk_usage: "Uso del disco",
        bandwidth_usage: "Uso de ancho de banda",
        process_cpu_usage: "Uso de CPU del proceso",
        metronome: "Metrónomo",
        beats_per_measure: "Compases por medida",
        volume: "Volumen",
        color_mode: "Modo color",
        single: "Único",
        light_mode: "Modo de luz",
        normal: "Normal",
        brightness: "Brillo",
        backlight_brightness: "Brillo de la retroiluminación",
        input_port: "Puerto de entrada",
        playback_port: "Puerto de reproducción",
        cover_state: "Estado de la tapa",
        screen: "Pantalla",
        reset_settings_to_default: "Restablecer la configuración a la predeterminada",
        confirm: "Confirmar",
        restart_rpi: "Reiniciar RPi",
        restart_visualizer: "Reiniciar visualizador",
        power_off: "Apagar",
        update_visualizer: "Actualizar visualizador",
        connect_ports: "Conectar puertos",
        clean_led_strip: "Limpiar tira de LED",
        logs: "Registros",
        show_last: "Mostrar último",
        lines: "líneas",
        reinitialize_network_on_boot: "Reiniciar la red al arrancar",
        required_for_some_routers: "Requerido para algunos routers. Desactivar esta opción acelerará el inicio, pero puede causar problemas de conexión",

        //dynamic content
        incorrect_password: "Si se introduce una contraseña incorrecta, puede llevar unos minutos restablecer el punto de acceso.",
        if_the_hotspot: "Si el punto de acceso no aparece después de 5 minutos, reinicia el dispositivo, por favor.",
        connect: "Conectar",
    },

    zh: {
        //index
        loading: "正在加载...",
        home: "主页",
        led_settings: "LED设置",
        songs: "音乐",
        sequences: "序列",
        ports_settings: "端口设置",
        led_animations: "LED动画",
        wifi: "无线网",
        switch_ports: "切换端口",
        view_on_github: "在GitHub上查看",
        join_discord: "加入Discord服务器",

        //ledcolor
        led_color: "LED颜色",
        multicolor: "多色",
        rainbow_colors: "彩虹色",
        speed: "速度",
        gradient: "渐变",
        scale_coloring: "标度着色",
        velocity_rainbow: "速度彩虹",

        offset:  "偏移",
        scale: "规模",
        timeshift: "Timeshift",
        scale_percent: "规模%",
        curve_percent: "曲线%",
        slow_color: "慢颜色",
        fast_color: "快速颜色",
        max_notes: "最大音符数",
        period_in_seconds: "周期（秒）",
        start: "起始",
        end: "结束",
        color_for_in_scale: "在规模内的颜色",
        color_for_not_in_scale: "不在规模内的颜色",
        scale_key: "规模键",

        //lightmode
        fading: "衰退",
        velocity: "速度",
        instant: "即时",
        very_fast: "非常快",
        fast: "快",
        medium: "中",
        slow: "慢",
        very_slow: "非常慢",

        //ledsettings
        backlight: "背光",
        sides_colors:  "边缘颜色",
        off: "关闭",
        same_as_led_color: "与LED颜色相同",
        rgb: "RGB",
        adjustments: "调整",
        skipped_notes: "跳过的音符",
        finger_based_ignore: "基于手指：忽略有关使用哪只手播放的信息的音符",
        normal_ignore_all_other: "正常：忽略所有其他音符",
        none: "无",
        finger_based: "基于手指",
        reverse: "反转",
        inverted: "倒置",
        shift: "移动",
        led_count: "LED数量",
        leds_per_meter: "一米LED数",
        led_note_offsets: "LED音符偏移",
        shift_notes_for_better_alignment: "移动音符以更好地对齐",
        light_number_means: "灯编号：92和偏移量：2意味着LED 92之后的音符将向左移动2个",
        light_number: "灯光编号",
        note_offset: "音符偏移",
        disable_backlight_on_idle: "न待机时关闭背光",

        //songs
        status: "状态",
        start_recording: "开始录制",
        stop_recording: "停止录制",
        starting: "开始",
        stop_and_save: "停止并保存",
        cancel_recording: "取消录制",
        canceling:  "取消",
        upload_songs: "上传歌曲",
        drag_and_drop_midi: "拖放midi文件(s)至此",
        or_click_to_choose: "或点击以选择文件(s)上传",
        play_on_piano: "使用钢琴播放",
        stop: "停止",
        stop_learning: "停止学习",
        loop: "循环",
        practice: "练习",
        melody: "旋律",
        rhytm: "节奏",
        listen:  "聆听",
        tempo:  "节奏",
        hands: "手",
        both: "两只",
        right: "右",
        left: "左",
        mute_hands: "静音手",
        wrong_notes: "错误音符",
        disabled: "禁用",
        enabled: "启用",
        future_notes: "未来音符",
        start_point: "开始点",
        set_the_current_track_time: "设置当前曲目时间作为循环开始",
        end_point: "结束点",
        set_the_current_track_time_as_the_loop_end: "设置当前曲目时间作为循环结束",
        left_hand_color: "左手颜色",
        right_hand_color: "右手颜色",
        songs_list: "歌曲列表",
        getting_songs_list: "获取歌曲列表",
        number_of_mistakes: "重新启动循环的错误次数（0 - 永不）",

        //sheetmusic
        load_custom_sheet: "加载自定义乐谱",
        offset_ms: "偏移（毫秒）",
        sheet_tip_line_1: "如果自动转换不符合你的期望，你可以加载自己的音乐符号。",
        sheet_tip_line_2: "乐谱上突出显示的部分只是一个大致的指示器。使用偏移工具改进同步。",
        sheet_tip_line_3: "要获得最好的结果，请执行以下操作：",
        sheet_tip_line_4: "1. 使用Musescore或类似程序将你的乐谱转换为midi文件，将其命名为你要加载的midi文件的相同名称。 (例如，我的音乐.mid和我的音乐.xml)",
        sheet_tip_line_5: "2. 上传midi文件和乐谱文件。",

        //songslist
        name: "名称",
        date: "日期",
        action: "动作",
        songs_per_page: "每页歌曲数",
        total_songs: "总歌曲数：",

        //sequences
        sequence: "序列",
        active_sequence: "活动序列",
        color: "颜色",
        next_step: "下一步",
        press_spacebar:  "按空格键",
        add: "添加",
        remove: "删除",
        step: "步骤",
        activation_method:  "激活方法",
        button_press: "按下按钮",
        sustain_pedal: "延音踏板",
        portamento_pedal:  "Portamento踏板",
        sostuneto_pedal: "Sostuneto踏板",
        soft_pedal: "软踏板",
        next_step_value:  "下一步值",
        next_step_tip_line_1: "该值决定你按下或松开踏板时是否会激活下一步。",
        next_step_tip_line_2: "例如，如果你希望在完全按下Sostenuto踏板后改变设置，应将其设为126",
        next_step_tip_line_3: "(当踏板完全按下时，127是最大值)。",
        next_step_tip_line_4: "将值设为-1，以通过完全释放你的踏板来改变设置。",
        sequence_name: "序列名称",
        save_current_settings_to_step: "将当前设置保存到步骤",

        //ports
        for_lighting_leds: "若想用你的键盘来点亮LED，将你的钢琴端口设为活动输入。",
        set_your_synthesia: "设置你的Synthesia口以进行学习模式。",
        active: "活动",
        switch: "切换",
        secondary: "次要",
        used_for_sound: "播放midi文件时用于播放声音。",
        list_of_ports: "端口和连接列表",
        disconnect_ports: "断开端口",
        restart_rtp: "重启RTP MIDI服务",
        midi_events: "MIDI事件",
        show_midi_events: "显示midi事件（可能会降低性能）",

        //network
        connected_wifi: "已连接Wi-Fi",
        disconnect_wifi_and_create_hotspot: "断开Wi-Fi并创建热点",
        disconnecting_warning_line_1: "断开Wi-Fi将开始创建热点的过程。这可能需要一些时间。",
        disconnecting_warning_line_2: "你需要连接到新创建的热点才能再次访问网络接口。",
        wifi_list: "Wi-Fi列表",

        //ledanimations
        stop_animation: "停止动画",
        led_animation_on_idle: "LED闲置动画",
        after_minutes: "几分钟后（0 - 从不）",
        animation_type: "动画类型",

        //homepage
        advanced_mode: "高级模式",
        system_cpu_usage: "系统CPU使用",
        ram_usage: "内存使用",
        disk_usage: "磁盘使用",
        bandwidth_usage: "带宽使用",
        process_cpu_usage: "进程CPU使用",
        metronome: "节拍器",
        beats_per_measure: "每一小节的拍数",
        volume: "音量",
        color_mode: "颜色模式",
        single: "单色",
        light_mode: "灯光模式",
        normal: "正常",
        brightness: "亮度",
        backlight_brightness: "背光亮度",
        input_port: "输入端口",
        playback_port: "播放端口",
        cover_state: "盖状态",
        screen: "屏幕",
        reset_settings_to_default: "将设置重置为默认",
        confirm: "确认",
        restart_rpi: "重新启动RPi",
        restart_visualizer: "重启视觉效果",
        power_off: "关闭电源",
        update_visualizer: "更新视觉效果",
        connect_ports: "连接端口",
        clean_led_strip: "清洁LED条",
        logs: "日志",
        show_last: "显示最后",
        lines: "行",
        reinitialize_network_on_boot: "启动时重新初始化网络",
        required_for_some_routers: "对于某些路由器是必需的。禁用此选项将加快启动速度，但可能会导致连接问题",

        //dynamic content
        incorrect_password: "如果输入的密码不正确，可能需要几分钟才能重新建立热点。",
        if_the_hotspot: "如果热点在5分钟后仍未出现，请重新启动设备",
        connect: "连接",
    },

    hi: {
        //index
        loading: "लोड हो रहा है ...",
        home: "होम",
        led_settings: "लीड सेटिंग",
        songs: "गाने",
        sequences: "सीक्वेन्स",
        ports_settings: "पोर्ट सेटिंग्स",
        led_animations: "एल ई डी एनीमेशन",
        wifi: "Wi-Fi",
        switch_ports: "स्विच पोर्ट्स",
        view_on_github: "गिटहब पर देखे",
        join_discord: "डिस्कॉर्ड सर्वर में शामिल हों",

        //ledcolor
        led_color: "एलईडी का रंग",
        multicolor: "बहुरंगी",
        rainbow_colors: "इंद्रधनुष के रंग",
        speed: "गति",
        gradient: "ढाल",
        scale_coloring: "पैमाने का रंग",
        velocity_rainbow: "वेग इंद्रधनुष",

        offset:  "ओफसेट",
        scale: "स्केल",
        timeshift: "टाइमशिफ्ट",
        scale_percent: "स्केल %",
        curve_percent: "वक्र %",
        slow_color: "धीमा रंग",
        fast_color: "तेज रंग",
        max_notes: "अधिकतम नोट्स",
        period_in_seconds: "सेकंड में अवधि",
        start: "शुरुआत",
        end: "अंत",
        color_for_in_scale: "स्केल में होने वाले रंग के लिए",
        color_for_not_in_scale: "स्केल में न होने वाले रंग के लिए",
        scale_key: "स्केल कुंजी",

        //lightmode
        fading: "मंद",
        velocity: "वेग",
        instant: "तत्काल",
        very_fast: "बहुत तेज",
        fast: "तेज",
        medium: "मध्यम",
        slow: "धीमा",
        very_slow: "बहुत धीमा",

        //ledsettings
        backlight: "बैकलाइट",
        sides_colors:  "बजु के रंग",
        off: "बंद",
        same_as_led_color: "एलईडी के रंग के समान",
        rgb: "आरजीबी",
        adjustments: "समायोजन",
        skipped_notes: "छूटे हुए नोट",
        finger_based_ignore: "फिंगर आधारित: हाथ के बारे में खेलने की जानकारी वाले नोटों को अनदेखा करें",
        normal_ignore_all_other: "नार्मल: सभी अन्य नोटों को नजरअंदाज करें",
        none: "कोई नहीं",
        finger_based: "फिंगर आधारित",
        reverse: "पलटना",
        inverted: "उल्टा",
        shift: "बदलाव",
        led_count: "एलईडी संख्या",
        leds_per_meter: "प्रति मीटर एलईडी",
        led_note_offsets: "एलईडी नोट ऑफसेट",
        shift_notes_for_better_alignment: "बेहतर संरेखण के लिए नोट्स शिफ्ट करें",
        light_number_means: "प्रकाश संख्या का मतलब 92 और ऑफसेट 2 होता है कि एलईडी 92 के बाद के नोट बाईं तरफ 2 डिग्री तक शिफ्ट होंगे",
        light_number: "प्रकाश संख्या",
        note_offset: "ध्यान ऑफसेट",
        disable_backlight_on_idle: "निष्क्रिय पर प्रकाश प्रक्षेपण बंद करें",

        //songs
        status: "स्थिति",
        start_recording: "रिकॉर्डिंग शुरू करें",
        stop_and_save: "रोकें और सहेजें",
        cancel_recording: "रिकॉर्डिंग रद्द करें",
        canceling:  "रद्द कर रहा है",
        upload_songs: "गाने अपलोड करें",
        drag_and_drop_midi: "मिडी फ़ाइल (फ़ाइलें) यहां खींचें और छोड़ें",
        or_click_to_choose: "या अपलोड करने के लिए फ़ाइल (फ़ाइलें) का चयन करने के लिए क्लिक करें",
        play_on_piano: "पिअनो पर चलाएं",
        stop: "रोकें",
        stop_learning: "सीखना बंद करें",
        loop: "लूप",
        practice: "अभ्यास",
        melody: "धून",
        rhytm: "ताल",
        listen:  "सुनें",
        tempo:  "लय",
        hands: "हाथ",
        both: "दोनों",
        right: "दायाँ",
        left: "बायाँ",
        mute_hands: "म्यूट हैंड्स",
        wrong_notes: "गलत नोट्स",
        disabled: "विकलांग",
        enabled: "सक्षम",
        future_notes: "भविष्य के नोट्स",
        start_point: "प्रारंभिक बिंदु",
        set_the_current_track_time: "लूप शुरुआत के रूप में वर्तमान ट्रैक समय सेट करें",
        end_point: "अंतिम बिंदु",
        set_the_current_track_time_as_the_loop_end: "लूप एंड के रूप में वर्तमान ट्रैक समय सेट करें",
        left_hand_color: "बाएं हाथ का रंग",
        right_hand_color: "दाएं हाथ का रंग",
        songs_list: "गानों की सूची",
        getting_songs_list: "गानों की सूची प्राप्त कर रहा है",
        number_of_mistakes: "पुनरारंभ करने के लिए गलतियों की संख्या (0 - कभी नहीं)",

        //sheetmusic
        load_custom_sheet: "कस्टम शीट लोड करें",
        offset_ms: "ऑफसेट (एमएस)",
        sheet_tip_line_1: "यदि स्वतः रूपांतरण आपकी अपेक्षाओं को पूरा नहीं करता है, तो आप अपने स्वयं के संगीत नोटेशन को लोड कर सकते हैं। ",
        sheet_tip_line_2: "संगीत नोटेशन का चयनित भाग केवल एक अनुमानित सूचक है। सिंक्रोनाइज़ेशन को बेहतर करने के लिए ऑफसेट टूल का उपयोग करें। ",
        sheet_tip_line_3: "सर्वश्रेष्ठ परिणाम के लिए निम्नलिखित करें: ",
        sheet_tip_line_4: "1. अपने संगीत नोटेशन को Musescore या समान प्रोग्राम का उपयोग करके मिडी फ़ाइल में परिवर्तित करें, इसे उस मिडी फ़ाइल के नाम से नामित करें जो आप लोड करना चाहते हैं। ",
        sheet_tip_line_5: "2. मिडी फ़ाइल और संगीत नोटेशन फ़ाइल को अपलोड करें। ",

        //songslist
        name: "नाम",
        date: "तारीख",
        action: "कार्य",
        songs_per_page: "प्रति पृष्ठ गाने",
        total_songs: "कुल गाने: ",

        //sequences
        sequence: "क्रम",
        active_sequence: "सक्रिय सीक्वेंस",
        color: "रंग",
        next_step: "अगला कदम",
        press_spacebar:  "स्पेसबार दबाएं",
        add: "जोड़ें",
        remove: "हटाएँ",
        step: "कदम",
        activation_method:  "सक्रियण का तरीका",
        button_press: "बटन दबाएं",
        sustain_pedal: "संग्रहण पेडल",
        portamento_pedal:  "पोर्टामेंटो पेडल",
        sostuneto_pedal: "सोष्टूनेटो पेडल",
        soft_pedal: "सॉफ्ट पेडल",
        next_step_value:  "अगले कदम का मूल्य",
        next_step_tip_line_1: "यह मान तय करता है कि अगला कदम सक्रिय होता है जब आप पेडल दबाएं या छोड़ें।",
        next_step_tip_line_2: "उदाहरण के लिए, अगर आप पूरी तरह संग्रहण पेडल दबाने के बाद सेटिंग्स बदलना चाहते हैं तो आपको इसे 126 पर सेट करना चाहिए",
        next_step_tip_line_3: "(127 पेडल पूरी तरह दबाए जाने पर अधिकतम मान है)।",
        next_step_tip_line_4: "पेडल को पूरी तरह छोड़कर अपनी सेटिंग्स बदलने के लिए मान को -1 पर सेट करें।",
        sequence_name: "क्रम का नाम",
        save_current_settings_to_step: "मौजूदा सेटिंग्स को कदम पर सहेजें",

        //ports
        for_lighting_leds: "अपने कीबोर्ड के साथ एलईडी जलाने के लिए, अपने पियानो पोर्ट को एक सक्रिय इनपुट के रूप में सेट करें।",
        set_your_synthesia: "अपने सिंथेसिया के पोर्ट को सीखने के मोड के लिए सेट करें।",
        active: "सक्रिय",
        switch: "स्विच",
        secondary: "माध्यमिक",
        used_for_sound: "मिडी फ़ाइल चलाते समय ध्वनि के लिए उपयोग किया गया।",
        list_of_ports: "पोर्ट्स और कनेक्शन की सूची",
        disconnect_ports: "पोर्ट्स को डिस्कनेक्ट करें",
        restart_rtp: "आरटीपी मिडी सेवा को पुनरारंभ करें",
        midi_events: "मिडी इवेंट",
        show_midi_events: "मिडी इवेंट दिखाएं (प्रदर्शन घटा सकता है)",

        //network
        connected_wifi: "वाई-फाई से जुड़े",
        disconnect_wifi_and_create_hotspot: "वाई-फ़ाई को डिस्कनेक्ट करें और हॉटस्पॉट बनाएं",
        disconnecting_warning_line_1: "वाई-फ़ाई से डिस्कनेक्ट होने से हॉटस्पॉट बनाने की प्रक्रिया शुरू हो जाएगी। इसमें थोड़ी देर लग सकती है।",
        disconnecting_warning_line_2: "आपको वेब इंटरफ़ेस तक पुनः पहुँचने के लिए नए डिस्कनेक्ट हास्पॉट से जोड़ने की आवश्यकता होगी।",
        wifi_list: "वाई-फ़ाई सूची",

        //ledanimations
        stop_animation: "एनिमेशन रोकें",
        led_animation_on_idle: "आईडल पर एलईडी एनिमेशन",
        after_minutes: "मिनटों के बाद (0 - कभी नहीं)",
        animation_type: "एनिमेशन प्रकार",

        //homepage
        advanced_mode: "उन्नत मोड",
        system_cpu_usage: "सिस्टम सीपीयू उपयोग",
        ram_usage: "रैम उपयोग",
        disk_usage: "डिस्क उपयोग",
        bandwidth_usage: "बैंडविड्थ उपयोग",
        process_cpu_usage: "प्रक्रिया सीपीयू उपयोग",
        metronome: "मेट्रोनोम",
        beats_per_measure: "प्रति माप धड़कन",
        volume: "मात्रा",
        color_mode: "रंग मोड",
        single: "सिंगल",
        light_mode: "प्रकाश संस्करण",
        normal: "सामान्य",
        brightness: "चमक",
        backlight_brightness: "बैकलाइट चमक",
        input_port: "इनपुट पोर्ट",
        playback_port: "प्लेबैक पोर्ट",
        cover_state: "कवर स्थिति",
        screen: "स्क्रीन",
        reset_settings_to_default: "रीसेट सेटिंग्स डिफ़ॉल्ट ",
        confirm: "पुष्टि करें",
        restart_rpi: "आरपीआई पुनरारंभ करें",
        restart_visualizer: "विज़्युअलाइज़र पुनरारंभ करें",
        power_off: "बंद करें",
        update_visualizer: "विज़्युअलाइज़र अपडेट करें",
        connect_ports: "पोर्ट्स कनेक्ट करें",
        clean_led_strip: "एलईडी स्ट्रिप साफ करें",
        logs: "लॉग्स",
        show_last: "अंतिम दिखाएं",
        lines: "लाइनों",
        reinitialize_network_on_boot: "प्रारंभ पर नेटवर्क को पुनर्आरंभ करें।",
        required_for_some_routers: "कुछ राउटर्स के लिए आवश्यक है। इस विकल्प को अक्षम करने से प्रारंभ की गति तेज़ करेगी, लेकिन यह कनेक्शन समस्याएँ पैदा कर सकता है।",

        //dynamic content
        incorrect_password: "यदि गलत पासवर्ड दर्ज किया जाता है, तो हास्पॉट को फिर से स्थापित करने में कुछ मिनट लग सकते हैं।",
        if_the_hotspot: "यदि हॉटस्पॉट 5 मिनट बाद भी प्रकट नहीं होता है, तो कृपया उपकरण को पुनः आरंभ करें",
        connect: "जुड़ने",
    },

    pt: {
        //index
        loading: "Carregando...",
        home: "Início",
        led_settings: "Configurações de LED",
        songs: "Canções",
        sequences: "Sequências",
        ports_settings: "Configurações de Portas",
        led_animations: "Animações de LED",
        wifi: "Wi-Fi",
        switch_ports: "Alterar Portas",
        view_on_github: "Ver no GitHub",
        join_discord: "Participe do servidor Discord",

        offset: "Deslocamento",
        scale: "Escala",
        timeshift: "Remapeamento de Tempo",
        scale_percent: "Escala%",
        curve_percent: "Curva%",
        slow_color: "Cor lenta",
        fast_color: "Cor rápida",
        max_notes: "Máximo de notas",
        period_in_seconds: "Período em segundos",
        start: "Início",
        end: "Fim",
        color_for_in_scale: "Cor para na escala",
        color_for_not_in_scale: "Cor para fora da escala",
        scale_key: "Tecla da escala",


        //ledcolor
        led_color: "Cor do LED",
        multicolor: "Multicolorido",
        rainbow_colors: "Cores do arco-íris",
        speed: "Velocidade",
        gradient: "Gradiente",
        scale_coloring: "Coloração em Escala",
        velocity_rainbow: "Arco-íris de Velocidade",

        //lightmode
        fading: "Desvanecimento",
        velocity: "Velocidade",
        instant: "Imediato",
        very_fast: "Muito rápido",
        fast: "Rápido",
        medium: "Médio",
        slow: "Lento",
        very_slow: "Muito Lento",

        //ledsettings
        backlight: "Luz de fundo",
        sides_colors:  "Cores laterais",
        off: "Desligado",
        same_as_led_color: "Mesma cor da LED",
        rgb: "RGB",
        adjustments: "Ajustes",
        skipped_notes: "Notas ignoradas",
        finger_based_ignore: "Com base nos dedos: ignore notas com informações sobre qual mão tocar",
        normal_ignore_all_other: "Normal: ignore todas as outras notas",
        none: "Nenhum",
        finger_based: "Com base nos dedos",
        reverse: "Reverter",
        inverted: "Invertido",
        shift: "Deslocar",
        led_count: "Contagem de LEDs",
        leds_per_meter: "LEDs por metro",
        led_note_offsets: "Desvio de Nota de LED",
        shift_notes_for_better_alignment: "Desloque notas para melhor alinhamento",
        light_number_means: "O número da luz: 92 e Offset: 2 significa que as notas após o LED 92 serão deslocadas em 2 para a esquerda",
        light_number: "Número da luz",
        note_offset: "Desvio da nota",
        disable_backlight_on_idle: "Desativar iluminação de fundo em repousoं",

        //songs
        status: "Status",
        start_recording: "Iniciar gravação",
        stop_recording: "Parar gravação",
        starting: "Iniciando",
        stop_and_save: "Parar e salvar",
        cancel_recording: "Cancelar gravação",
        canceling: "Cancelando",
        upload_songs: "Enviar canções",
        drag_and_drop_midi: "Arraste e solte o arquivo(s) MIDI aqui",
        or_click_to_choose: "ou clique para escolher o(s) arquivo(s) para enviar",
        play_on_piano: "Tocar no piano",
        stop: "Parar",
        stop_learning: "Parar aprendizado",
        loop: "Loop",
        practice: "Prática",
        melody:  "Melodia",
        rhytm: "Ritmo",
        listen: "Ouvir",
        tempo:  "Tempo",
        hands: "Mãos",
        both: "Ambas",
        right: "Direita",
        left: "Esquerda",
        mute_hands: "Silenciar mãos",
        wrong_notes: "Notas erradas",
        disabled: "Desativado",
        enabled: "Ativado",
        future_notes: "Notas futuras",
        start_point: "Ponto inicial",
        set_the_current_track_time: "Defina o tempo de faixa atual como o início do loop",
        end_point: "Ponto final",
        set_the_current_track_time_as_the_loop_end: "Defina o tempo de faixa atual como o fim do loop",
        left_hand_color: "Cor da mão esquerda",
        right_hand_color: "Cor da mão direita",
        songs_list: "Lista de canções",
        getting_songs_list: "Obtendo lista de canções",
        number_of_mistakes: "Número de erros para reiniciar o ciclo (0 - nunca)",

        //sheetmusic
        load_custom_sheet: "Carregar folha personalizada",
        offset_ms: "Compensação (ms)",
        sheet_tip_line_1: "Se a conversão automática não atender às suas expectativas, você pode carregar sua própria notação musical.",
        sheet_tip_line_2: "A parte destacada da notação musical é apenas um indicador aproximado. Utilize a ferramenta de compensação para aperfeiçoar a sincronização.",
        sheet_tip_line_3: "Para obter o melhor resultado, faça o seguinte:",
        sheet_tip_line_4: "1. Converta sua partitura em um arquivo MIDI usando Musescore ou um programa semelhante, e nomeie-o da mesma forma que o arquivo MIDI que deseja carregar. (Por exemplo, minha_música.mid e minha_música.xml)",
        sheet_tip_line_5: "2. Faça o envio do arquivo MIDI e do arquivo de notação musical.",

        //songslist
        name: "Nome",
        date: "Data",
        action: "Ação",
        songs_per_page: "Canções por página",
        total_songs: "Total de canções: ",

        //sequences
        sequence: "Sequência",
        active_sequence: "Sequência Ativa",
        color: "Cor",
        next_step: "Próximo passo",
        press_spacebar:  "Pressione a barra de espaço",
        add: "Adicionar",
        remove: "Remover",
        step: "Etapa",
        activation_method:  "Método de Ativação",
        button_press: "Pressionar botão",
        sustain_pedal: "Pedal Sustain",
        portamento_pedal:  "Pedal Portamento",
        sostuneto_pedal: "Pedal Sostuneto",
        soft_pedal: "Pedal Soft",
        next_step_value:  "Valor do próximo passo",
        next_step_tip_line_1: "Este valor decide se o próximo passo é ativado ao pressionar ou soltar o pedal.",
        next_step_tip_line_2: "Por exemplo, se você quiser alterar as configurações depois de pressionar totalmente o pedal Sostenuto, você deve definir para 126",
        next_step_tip_line_3: "(127 é o valor máximo quando o pedal está totalmente pressionado).",
        next_step_tip_line_4: "Defina o valor para -1 para alterar as configurações com o pedal, soltando-o completamente.",
        sequence_name: "Nome da sequência",
        save_current_settings_to_step: "Salvar configurações atuais para a etapa",

        //ports
        for_lighting_leds: "Para iluminar os LEDs com o seu teclado, defina a porta do seu piano como entrada ativa.",
        set_your_synthesia: "Defina a porta do Synthesia para o modo de aprendizado.",
        active: "Ativo",
        switch: "Alterar",
        secondary: "Secundário",
        used_for_sound: "Usado para som ao reproduzir um arquivo MIDI.",
        list_of_ports: "Lista de portas e conexões",
        disconnect_ports: "Desconectar portas",
        restart_rtp: "Reiniciar serviço RTP MIDI",
        midi_events: "Eventos MIDI",
        show_midi_events: "Exibir eventos MIDI (pode reduzir o desempenho)",

        //network
        connected_wifi: "Wi-Fi Conectado",
        disconnect_wifi_and_create_hotspot: "Desconectar do Wi-Fi e criar Hotspot",
        disconnecting_warning_line_1: "A desconexão do Wi-Fi vai iniciar o processo para criar um Hotspot. Isso pode demorar um pouco.",
        disconnecting_warning_line_2: "Você precisará se conectar ao novo Hotspot criado para acessar a interface web novamente.",
        wifi_list: "Lista de Wi-Fi",

        //ledanimations
        stop_animation: "Parar animação",
        led_animation_on_idle: "Animação de LED em ociosidade",
        after_minutes: "depois de minutos (0 - nunca)",
        animation_type: "Tipo de animação",

        //homepage
        advanced_mode: "Modo avançado",
        system_cpu_usage: "Uso de CPU do sistema",
        ram_usage: "Uso de RAM",
        disk_usage: "Uso de disco",
        bandwidth_usage: "Uso de largura de banda",
        process_cpu_usage: "Uso de CPU do processo",
        metronome: "Metrônomo",
        beats_per_measure: "Batidas por compasso",
        volume: "Volume",
        color_mode: "Modo de cor",
        single: "Único",
        light_mode: "Modo de luminosidade",
        normal: "Normal",
        brightness: "Brilho",
        backlight_brightness: "Luminosidade de fundo",
        input_port: "Porta de entrada",
        playback_port: "Porta de reprodução",
        cover_state: "Estado da tampa",
        screen: "Tela",
        reset_settings_to_default: "Redefinir configurações para padrão",
        confirm: "Confirmar",
        restart_rpi: "Reiniciar RPi",
        restart_visualizer: "Reiniciar Visualizador",
        power_off: "Desligar",
        update_visualizer: "Atualizar Visualizador",
        connect_ports: "Conectar Portas",
        clean_led_strip: "Limpar tira de LED",
        logs: "Logs",
        show_last: "Mostrar último",
        lines: "linhas",
        reinitialize_network_on_boot: "Reinicializar a rede na inicialização",
        required_for_some_routers: "Necessário para alguns roteadores. Desativar esta opção acelerará o início, mas pode causar problemas de conexão",

        //dynamic content
        incorrect_password: "Se uma senha incorreta for inserida, pode levar alguns minutos para que o hotspot seja restabelecido.",
        if_the_hotspot: "Se o Hotspot não aparecer após 5 minutos, reinicie o dispositivo",
        connect: "Conectar",
    },

    ja: {
        //index
        loading: "読み込み中...",
        home: "ホーム",
        led_settings: "LED設定",
        songs: "曲",
        sequences: "シーケンス",
        ports_settings: "ポート設定",
        led_animations: "LEDアニメーション",
        wifi: "Wi-Fi",
        switch_ports: "ポート切替",
        view_on_github: "GitHubで見る",
        join_discord: "Discordサーバーに参加",

        offset: "オフセット",
        scale: "スケール",
        timeshift: "タイムシフト",
        scale_percent: "スケール%",
        curve_percent: "カーブ%",
        slow_color: "スローカラー",
        fast_color: "ファストカラー",
        max_notes: "最大の音数",
        period_in_seconds: "秒単位の期間",
        start: "スタート",
        end: "終了",
        color_for_in_scale: "スケール内の色",
        color_for_not_in_scale: "スケール外の色",
        scale_key: "スケールキー",

        //ledcolor
        led_color: "LEDの色",
        multicolor: "マルチカラー",
        rainbow_colors: "レインボーカラー",
        speed: "速度",
        gradient: "グラデーション",
        scale_coloring: "スケールカラー",
        velocity_rainbow: "ベロシティレインボー",

        //lightmode
        fading: "フェージング",
        velocity: "ベロシティ",
        instant: "インスタント",
        very_fast: "非常に速い",
        fast: "速い",
        medium: "中くらい",
        slow: "遅い",
        very_slow: "非常に遅い",

        //ledsettings
        backlight: "バックライト",
        sides_colors:  "サイドカラー",
        off: "オフ",
        same_as_led_color: "LEDの色と同じ",
        rgb: "RGB",
        adjustments: "調整",
        skipped_notes: "スキップされたノート",
        finger_based_ignore: "フィンガーベース：どの手で弾くべきかの情報があるノートを無視",
        normal_ignore_all_other: "ノーマル：すべての他のノートを無視",
        none: "なし",
        finger_based: "フィンガーベース",
        reverse: "リバース",
        inverted: "反転",
        shift: "シフト",
        led_count: "LEDの数",
        leds_per_meter: "メートルあたりLED数",
        led_note_offsets: "LEDノートオフセット",
        shift_notes_for_better_alignment: "より良い整列のためにシフトノート",
        light_number_means: "ライト番号：92、オフセット：2は、LED 92以降のノートが2つ左にシフトされることを意味します",
        light_number: "ライト番号",
        note_offset: "ノートオフセット",
        disable_backlight_on_idle: "アイドル状態でバックライトを無効にする",

        //songs
        status: "ステータス",
        start_recording: "録音開始",
        starting: "開始",
        stop_and_save: "停止して保存",
        cancel_recording: "録音をキャンセル",
        canceling:  "キャンセル中",
        upload_songs: "曲をアップロード",
        drag_and_drop_midi: "ここにMIDIファイルをドラッグアンドドロップ",
        or_click_to_choose: "または、アップロードするファイルを選択するためにクリックします",
        play_on_piano: "ピアノで演奏する",
        stop: "停止",
        stop_learning: "学習を停止",
        loop: "ループ",
        practice: "練習",
        melody: "メロディ",
        rhytm: "リズム",
        listen:  "聴く",
        tempo:  "テンポ",
        hands: "手",
        both: "両方",
        right: "右",
        left: "左",
        mute_hands: "ミュート手",
        wrong_notes: "間違ったノート",
        disabled: "無効",
        enabled: "有効",
        future_notes: "未来のノート",
        start_point: "スタートポイント",
        set_the_current_track_time: "現在のトラック時間をループの開始として設定します",
        end_point: "エンドポイント",
        set_the_current_track_time_as_the_loop_end: "現在のトラック時間をループの終了として設定します",
        left_hand_color: "左手の色",
        right_hand_color: "右手の色",
        songs_list: "曲リスト",
        getting_songs_list: "曲のリストを取得する",
        number_of_mistakes: "ループを再起動するための誤差の数（0 - 絶対にしない）",

        //sheetmusic
        load_custom_sheet: "カスタムシートを読み込む",
        offset_ms: "オフセット（ms）",
        sheet_tip_line_1: "自動変換が期待したものではない場合、独自の楽譜を読み込むことができます。",
        sheet_tip_line_2: "楽譜のハイライト部分は、目安です。オフセットツールを使用して同期を向上させます。",
        sheet_tip_line_3: "最良の結果を得るために以下の手順を実行します：",
        sheet_tip_line_4: "1. Musescoreまたは同様のプログラムを使用して楽譜をMIDIファイルに変換し、読み込みたいMIDIファイルと同じ名前を付けます（例：my_music.midおよびmy_music.xml）。",
        sheet_tip_line_5: "2. MIDIファイルと楽譜ファイルをアップロードします。",

        //songslist
        name: "曲名",
        date: "日付",
        action: "アクション",
        songs_per_page: "曲/ページ",
        total_songs: "合計曲数：",

        //sequences
        sequence: "シーケンス",
        active_sequence: "アクティブシーケンス",
        color: "色",
        next_step: "次のステップ",
        press_spacebar:  "スペースバーを押す",
        add: "追加",
        remove: "削除",
        step: "ステップ",
        activation_method:  "アクティビーション方法",
        button_press: "ボタンプレス",
        sustain_pedal: "サステインペダル",
        portamento_pedal:  "ポルタメントペダル",
        sostuneto_pedal: "ソスツネートペダル",
        soft_pedal: "ソフトペダル",
        next_step_value:  "次のステップ値",
        next_step_tip_line_1: "この値は次のステップがペダルを押すか離すときにアクティブになるかどうかを決定します。",
        next_step_tip_line_2: "例えば、ソスツネートペダルを完全に押して設定を変更したい場合は、それを126に設定します",
        next_step_tip_line_3: "（127はペダルが完全に押された場合の最大値です）。",
        next_step_tip_line_4: "ペダルを完全に離して設定を変更するには、値を-1に設定します。",
        sequence_name: "シーケンス名",
        save_current_settings_to_step: "現在の設定をステップに保存",

        //ports
        for_lighting_leds: "キーボードでLEDをライトアップするには、ピアノポートをアクティブな入力として設定します。",
        set_your_synthesia: "学習モードのためにSynthesiaのポートを設定します。",
        active: "アクティブ",
        switch: "スイッチ",
        secondary: "セカンダリ",
        used_for_sound: "MIDIファイルを再生するときに使用される。",
        list_of_ports: "ポートと接続のリスト",
        disconnect_ports: "ポート切断",
        restart_rtp: "RTP MIDIサービスを再起動",
        midi_events: "MIDIイベント",
        show_midi_events: "MIDIイベントを表示（パフォーマンスが低下する可能性があります）",

        //network
        connected_wifi: "接続済みWi-Fi",
        disconnect_wifi_and_create_hotspot: "Wi-Fiを切断し、ホットスポットを作成",
        disconnecting_warning_line_1: "Wi-Fiの接続を切ると、ホットスポットの作成プロセスが開始されます。これには少し時間がかかる場合があります。",
        disconnecting_warning_line_2: "ウェブインターフェースに再度アクセスするには、新しく作成されたホットスポットに接続する必要があります。",
        wifi_list: "Wi-Fiのリスト",

        //ledanimations
        stop_animation: "アニメーション停止",
        led_animation_on_idle: "IDLE状態でのLEDアニメーション",
        after_minutes: "経過後（0＝なし）",
        animation_type: "アニメーションの種類",

        //homepage
        advanced_mode: "アドバンストモード",
        system_cpu_usage: "システムCPU使用率",
        ram_usage: "RAM使用量",
        disk_usage: "ディスク使用量",
        bandwidth_usage: "帯域幅の使用",
        process_cpu_usage: "プロセスCPU使用率",
        metronome: "メトロノーム",
        beats_per_measure: "1拍当たりの打撃数",
        volume: "ボリューム",
        color_mode: "カラーモード",
        single: "シングル",
        light_mode: "ライトモード",
        normal: "ノーマル",
        brightness: "輝度",
        backlight_brightness: "バックライトの輝度",
        input_port: "入力ポート",
        playback_port: "再生ポート",
        cover_state: "カバーステート",
        screen: "スクリーン",
        reset_settings_to_default: "設定をデフォルトにリセット",
        confirm: "確認",
        restart_rpi: "RPiの再起動",
        restart_visualizer: "ビジュアライザーの再起動",
        power_off: "電源オフ",
        update_visualizer: "ビジュアライザーの更新",
        connect_ports: "ポートの接続",
        clean_led_strip: "LEDストリップをクリーン",
        logs: "ログ",
        show_last: "最後を表示",
        lines: "行数",
        reinitialize_network_on_boot: "Reinicializar a rede na inicialização",
        required_for_some_routers: "一部のルーターに必要です。このオプションを無効にすると起動が速くなりますが、接続の問題を引き起こす可能性があります",

        //dynamic content
        incorrect_password: "パスワードが間違っている場合、ホットスポットが再設定されるまでに数分かかることがあります。",
        if_the_hotspot: "ホットスポットが5分後に表示されない場合は、デバイスを再起動してください",
        connect: "接続",
    },

};